package com.wx.pay.config;

import com.github.wxpay.sdk.WXPayConfig;

import java.io.InputStream;

/**
 * @author 朝花不迟暮
 * @version 1.0
 * @date 2021/7/13 22:17
 */
public class WXConfig implements WXPayConfig
{
    @Override
    public String getAppID()
    {
        return "wxf34ab2bf69961028";
    }

    @Override
    public String getMchID()
    {
        return "1569666601";
    }

    @Override
    public String getKey()
    {
        return "XWW320324199706273717xdWRHYDlsbh";
    }

    @Override
    public InputStream getCertStream()
    {
        InputStream certStream = Thread.currentThread().getContextClassLoader().getResourceAsStream("apiclient_cert.p12");
        return certStream;
    }

    @Override
    public int getHttpConnectTimeoutMs()
    {
        return 8000;
    }

    @Override
    public int getHttpReadTimeoutMs()
    {
        return 10000;
    }
}
